Working with the Viewer > Customizing the Viewer > Configuration Options > Digital Rights Management Configuration |
The viewer can be configured to disable UI buttons that will allow an end user to easily duplicate the content of a document.
The following UI buttons can be disabled using configuration options:
Example |
Copy Code
|
---|---|
// DRM options are controlled through the viewer’s options argument. var pluginOptions = { documentID: viewingSessionId, language: languageItems, template: htmlTemplates, uiElements: { download: false, // hide download button copyPaste: false, // hide select text tool button printing: false // hide print button }, }; $("#myDiv").pccViewer(pluginOptions); |
DRM options for the viewer are enforced only in the viewer UI. A skilled end user can manipulate the browser to circumvent the viewer-based DRM enforcement.
Techniques a skilled user can use to circumvent viewer-based DRM enforcement:
Stronger enforcement of DRM can be put in place using server-side code changes. Techniques for stronger DRM enforcement are listed below:
Copy Code
|
|
---|---|
"^/ViewingSession/(?<ViewingSessionId>[^/]+)/SourceFile$" "^/SaveDocument/(?<DocumentID>[^/])" |
There are not any server-side techniques to strengthen DRM enforcement of copying text. However, removing the text selection control from the UI will require the user to understand the text selection API in order to enable it on the client. The manner in which the product renders svg also makes it nearly impossible to copy text just using a browser’s text selection capability.
For an added layer of security, Content Encryption can be enabled to provide an obscured transfer of data from the PCC Services to the client website, preventing unauthorized agents from discerning the content being transmitted. See Enabling Content Encryption for more information.